#!/bin/bash

# clean workspace
./gradlew clean

# build jar
./gradlew build -x test

echo JAR FILE:
ls build/libs
echo

IMAGE_NAME=harbor-jvm
echo IMAGE NAME:
echo $IMAGE_NAME
echo

docker build -f src/main/docker/Dockerfile -t $IMAGE_NAME .
